// To parse this JSON data, do
//
//     final indexSwiperModel = indexSwiperModelFromJson(jsonString);

import 'dart:convert';

List<IndexSwiperModel> indexSwiperModelFromJson(String str) => List<IndexSwiperModel>.from(json.decode(str).map((x) => IndexSwiperModel.fromJson(x)));

String indexSwiperModelToJson(List<IndexSwiperModel> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class IndexSwiperModel {
  int id;
  String image;
  String url;
  Jump jump;

  IndexSwiperModel({
    required this.id,
    required this.image,
    required this.url,
    required this.jump,
  });

  factory IndexSwiperModel.fromJson(Map<String, dynamic> json) => IndexSwiperModel(
    id: json["id"],
    image: json["image"],
    url: json["url"],
    jump: Jump.fromJson(json["jump"]),
  );

  Map<String, dynamic> toJson() => {
    "id": id,
    "image": image,
    "url": url,
    "jump": jump.toJson(),
  };
}

class Jump {
  String type;
  Map query;

  Jump({
    required this.type,
    required this.query,
  });

  factory Jump.fromJson(Map<String, dynamic> json) => Jump(
    type: json["type"],
    query: json["query"],
  );

  Map<String, dynamic> toJson() => {
    "type": type,
    "query": query,
  };
}
